package week10;

public class MagazineRack {
    public static void main(String[] args) {
        MagazineList rack = new MagazineList();

        rack.add(new Magazine("Time"));
        rack.add(new Magazine("Woodworking Today"));
        rack.add(new Magazine("Communications of the ACM"));
        rack.add(new Magazine("House and Garden"));
        rack.add(new Magazine("GQ"));
        Magazine sa = new Magazine("A");
        rack.add(sa);
        rack.insert(2, new Magazine("666"));

        Magazine a = new Magazine("Timi");
        Magazine b = new Magazine("Woodwork");
        int c = a.compareTo(b);
        System.out.println(c);

        System.out.println(rack);

        rack.Sort();
        rack.delete(sa);

        System.out.println(rack);

    }
}
